﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TrangChu.Master" AutoEventWireup="true" CodeBehind="DangKy.aspx.cs" Inherits="Airplane.DangKy" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
          .style2
          {
              width:200px;
          }
          .style4
        {
            width: 448px;
        }
        .style5
        {
            width: 200px;
            height: 26px;
        }
        .style6
        {
            width: 448px;
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:MultiView ID="MultiViewDangKy" runat="server" ActiveViewIndex= "0">
        <asp:View ID="ViewDangKy" runat="server">
            <table style="width: 600px; margin-left: 80px; margin-right: 44px;">
                <tr style="height:30px">
                    <td align="center" colspan="2" 
                        style="font-family: Arial, Helvetica, sans-serif; font-size: large; color: #FF0000">
                        Bạn chưa có tài khoản, hãy đăng ký để có những ưu đãi</td>
                </tr>
                <tr>
                    <td class="style2">
                    Tên tài khoản
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtTenTaiKhoan" runat="server" Width="250px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Chưa nhập tài khoản" ControlToValidate="txtTenTaiKhoan" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Mật Khẩu
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtMatKhau" runat="server" Width="250px" Height="20px" TextMode="Password"></asp:TextBox >
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  ControlToValidate="txtMatKhau" ErrorMessage="Chưa nhập mật khẩu" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Nhắc lại mật khẩu
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtNhacLaiMatKhau" runat="server" Width="250px" Height="20px" TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server"  ControlToCompare="txtMatKhau" ControlToValidate="txtNhacLaiMatKhau" ErrorMessage="Chưa trùng mật khẩu" ForeColor="Red"></asp:CompareValidator>

                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Họ Tên
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtHoTen" runat="server" Width="250px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  ControlToValidate="txtHoTen" ErrorMessage="Chưa nhập Họ tên" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Giới tính
                    </td>
                    <td class="style4" align="left">
                        <asp:RadioButton ID="rdbNam" runat="server" GroupName="GioiTinh" 
                            Checked="True" Text="Nam" />
                        <asp:RadioButton ID="rdbNu" GroupName="GioiTinh"
                            runat="server" Text="Nữ" />
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Địa chỉ 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtDiaChi" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Ngày sinh
                    </td>
                    <td class="style4" align="left" valign="top">
                    <asp:TextBox ID="txtNgaySinh" runat="server"  Height="20px" AutoPostBack ="false"></asp:TextBox> <br />
                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtNgaySinh"></asp:CalendarExtender>
                    
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Email
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtemail" runat="server" Width="250px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Chưa nhập Email" ForeColor="Red" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Email Chưa Đúng" ForeColor="Red" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Điện thoại 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtDienThoai" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style5">
                    Số giấy tờ tùy thân 
                    </td>
                    <td class="style6" align="left">
                        <asp:TextBox ID="txtSoGiayToTuyThan" runat="server" Width="250px" Height="20px"></asp:TextBox>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Chưa nhập giấy tờ" ForeColor="Red" ControlToValidate="txtSoGiayToTuyThan"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Loại Giấy Tờ Tùy Thân
                    </td>
                    <td class="style4" align="left">
                        <asp:DropDownList ID="ddlGiayTo" runat="server">
                            <asp:ListItem Value="CMND" Selected="True">CMND</asp:ListItem>
                                <asp:ListItem Value="HoChieu">Hộ Chiếu</asp:ListItem>
                                <asp:ListItem Value="GiayKhaiSinh">Giấy Khai Sinh</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                    Ngày cấp
                    </td>
                    <td class="style4" align="left" valign="top">
                    
                      <asp:ScriptManager runat="server">
                      </asp:ScriptManager>
                        <asp:TextBox ID="txtNgayCap" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtenderNgayCap" runat="server" TargetControlID="txtNgayCap"></asp:CalendarExtender>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Nước phát hành 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtNuocPhatHanh" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Quốc tịch 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtQuocTich" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Email phục hồi 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtEmailPhucHoi" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Số CreditCard
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtCredit" runat="server" Width="250px" Height="20px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Chưa nhập Credit" ForeColor="Red" ControlToValidate="txtCredit"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Loại Credit
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtLoaiCredit" runat="server" Width="250px" Height="20px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="style2">
                    Ngày hết hạn 
                    </td>
                    <td class="style4" align="left">
                        <asp:TextBox ID="txtNgayHetHan" runat="server" Height="20px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtenderNgayHetHan" runat="server" TargetControlID="txtNgayHetHan"></asp:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td class="style2"></td>
                    <td class="style4"> 
                        <asp:Button ID="btnDangKy" runat="server" Text="Đăng ký" Width="100px" 
                            Height="30px" onclick="btnDangKy_Click" />
                    </td>
                </tr>
                  <tr>
                    <td class="style2"></td>
                    <td class="style4"> 
                        <asp:Label ID="lbDangKy" runat="server" ForeColor="Blue"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="ViewKQDangKy" runat="server">
            <table style="width:100%">
                <tr style="height:50px">
                    <td></td>
                </tr>
                <tr align="center">
                    <td>
                <asp:Label ID="lbDangKyThanhCong" runat="server" Text="Đăng ký thành công" ForeColor="Red" Font-Size="X-Large"></asp:Label></td>
                </tr>
                <tr align="center">
                    <td>
                        <asp:Label ID="lbSoThe" runat="server" Text="" ForeColor="Green"></asp:Label>
                    </td>
                </tr>
                <tr align="center">
                    <td>
                        <p> Bạn có thể sử dụng tài khoản để đăng ký vé máy bay 
                             <br/>và có những quyền lợi nhất định </p>
                    </td>
                </tr>
                <tr align="center">    
                    <td>
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            Text="Bấm vào đây để về trang chủ" Font-Size="Medium" ForeColor="Blue" 
                            NavigateUrl="~/TrangChu.aspx"></asp:HyperLink> </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
